package br.com.fiap.goaround.servlet;

import java.io.IOException;
import javax.servlet.http.*;

@SuppressWarnings( "serial" )
public class GoAroundWebServlet extends HttpServlet
{
	public void doGet( HttpServletRequest req, HttpServletResponse resp )
		throws IOException
	{
		String token = req.getParameter( "token" );
		if( token == null || !token.trim().equals( "goaround" ) ) {
			resp.setContentType( "text/plain" );
			resp.getWriter().println(
				"Token inv�lido. Usu�rio n�o possui permiss�o de acesso [ " + req.getRequestURI() + " ] " );
		}
	}
}
